package com.scj.vue3springboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.scj.vue3springboot.entity.SysUser;
import com.scj.vue3springboot.entity.vo.LoginVo;
import com.scj.vue3springboot.util.Result;

import java.util.List;

/**
* @author 86182
* @description 针对表【sys_user(用户信息表)】的数据库操作Service
* @createDate 2023-10-11 11:09:09
*/
public interface SysUserService extends IService<SysUser> {

    Result login(LoginVo loginVo);

    Result info(String token);

    Result findAllUserInfo(Integer page, Integer limit, SysUser sysUser);

    Result addUser(SysUser sysUser,String token);

    Result updateUser(SysUser sysUser,String token);

    Result deleteUser(Long userId,String token);

    Result deleteUsers(List<Long> userId, String token);

    Result findAllRoleAndUserRole(Long userId);

    Result addUserRole(Long userId, List<Long> roleIdList);
}
